package com.example.cms.controller;

import com.example.cms.pojo.Mesagge;
import com.example.cms.service.OperateLogService;
import com.wordnik.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName OperationLog
 * @Descriptiom TODO
 * @Author Sunbird
 * @Date 2018/12/15 15:14
 * @Version 1.0
 **/
@RestController
public class OperationLogController {
    @Autowired
    private OperateLogService operateLogService;

    @RequestMapping("/selectPageOperationLog")
    @ApiOperation("分页查询操作日志")
    public Mesagge selectPageOperationLog(@ModelAttribute Mesagge baseModel){
        operateLogService.operationLogSelectVo(baseModel);
        return  baseModel;
    }
}
